package com.four.marketing.dao;

import com.four.marketing.entity.Seckill;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 侯新伟
 * @since 2021-12-14
 */
public interface SeckillDao extends BaseMapper<Seckill> {

    /**
     * 添加秒杀商品
     * @param seckill
     */
    void addSeckill(@Param("se") Seckill seckill);


    /**
     * 根据id查询秒杀商品
     * @param seId
     * @return
     */

    Seckill findSeckillId(Integer seId);
}
